﻿#region Using directives

using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;

#endregion

namespace ufida.u9.ait.openui
{
	[Serializable]
	public partial class openuiModel : UIModel
	{
		#region Constructor
		public openuiModel() : base("openui")
		{
			InitClass();
			this.SetResourceInfo("514312f6-b419-46eb-8aee-17d8c4e7c02d");
            try{
			    AfterInitModel();
            }catch(Exception exception){
              IUIModel model = this;
		      this.ErrorMessage.SetErrorMessage(ref model,exception);
			}
		}

		//just for Clone 
		private openuiModel(bool isInit) : base("openui")
		{}
		protected override IUIModel CreateCloneInstance()
		{
			return new openuiModel(false);
		}
		#endregion
		#region member
		#region views
		private AITLogView viewAITLog;			
		#endregion
		
		#region links
		#endregion
		
		#region properties
		#endregion
		#endregion

		#region property
		public AITLogView AITLog
		{
			get { return (AITLogView)this["AITLog"]; }
		}
		
		#region RealViews
		#endregion
		
	
		#endregion

		#region function
		private void InitClass()
		{
			this.viewAITLog = new AITLogView(this);
			this.viewAITLog.SetResourceInfo("a6bac60b-6a71-467a-ab38-3976cac5534f");
			this.Views.Add(this.viewAITLog);			

			
		}

		public override string AssemblyName
		{
			get { return "ufida.u9.ait.openui"; }
		}
		
		#endregion
		private void OnValidate_DefualtImpl()
    {
    }

	}


	[Serializable]
	public partial class AITLogView : UIView
	{
		#region Constructor
		public AITLogView(IUIModel model) : base(model,"AITLog","UFIDA.U9.AIT.OpenAPIBE.AITLog", true)
		{
			InitClass();
		}
		//构造空实例,不进行初始化.目前为Clone使用.
		private AITLogView():base(null,"AITLog","UFIDA.U9.AIT.OpenAPIBE.AITLog", true)
		{
		}
		protected override IUIView CreateCloneInstance()
		{
			return new AITLogView();
		}
		#endregion

		#region fiels property filter
		public IUIField FieldID
		{
			get { return this.Fields["ID"]; }
		}
		public IUIField FieldCreatedOn
		{
			get { return this.Fields["CreatedOn"]; }
		}
		public IUIField FieldCreatedBy
		{
			get { return this.Fields["CreatedBy"]; }
		}
		public IUIField FieldModifiedOn
		{
			get { return this.Fields["ModifiedOn"]; }
		}
		public IUIField FieldModifiedBy
		{
			get { return this.Fields["ModifiedBy"]; }
		}
		public IUIField FieldSysVersion
		{
			get { return this.Fields["SysVersion"]; }
		}
		public IUIField FieldCode
		{
			get { return this.Fields["Code"]; }
		}
		public IUIField FieldName
		{
			get { return this.Fields["Name"]; }
		}
		public IUIField FieldInParm
		{
			get { return this.Fields["InParm"]; }
		}
		public IUIField FieldOutParm
		{
			get { return this.Fields["OutParm"]; }
		}
		public IUIField FieldRetCode
		{
			get { return this.Fields["RetCode"]; }
		}
		public IUIField FieldRetMsg
		{
			get { return this.Fields["RetMsg"]; }
		}
		public IUIField FieldUrl
		{
			get { return this.Fields["Url"]; }
		}
		public IUIField FieldStartTime
		{
			get { return this.Fields["StartTime"]; }
		}
		public IUIField FieldEndTime
		{
			get { return this.Fields["EndTime"]; }
		}
		public IUIField FieldUsedTime
		{
			get { return this.Fields["UsedTime"]; }
		}


		#endregion

		#region Init
		private void InitClass()
		{
			UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "ID", true,true, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","34318093-98ef-4183-b0d0-d02c8abaad44");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), true,"","System.DateTime", "CreatedOn", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","f561bcbc-a4aa-40e1-97c1-579bea98be72");
			UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), true,"","System.String", "CreatedBy", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","cb21d26c-8a7a-496a-a668-2f2ea8fa8c63");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), true,"","System.DateTime", "ModifiedOn", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","88f79fb9-78db-4160-ba79-25359e43bbec");
			UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), true,"","System.String", "ModifiedBy", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","571ffa9e-176b-4fa9-a127-90f37e2d876e");
			UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), true,"0","System.Int64", "SysVersion", true,true, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","2c8be2bb-85f4-4380-94ec-5d231d081053");
			UIModelRuntimeFactory.AddNewUIField(this,"Code", typeof(String), true,"","System.String", "Code", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","db4405fb-5ae9-4d97-b8ff-45153712ef26");
			UIModelRuntimeFactory.AddNewUIField(this,"Name", typeof(String), true,"","System.String", "Name", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","23154d4c-6d9e-4c98-b3c2-c15e13a286e4");
			UIModelRuntimeFactory.AddNewUIField(this,"InParm", typeof(String), true,"","System.String", "InParm", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","d4b3b559-a4c2-424a-99b3-1c991763d5c5");
			UIModelRuntimeFactory.AddNewUIField(this,"OutParm", typeof(String), true,"","System.String", "OutParm", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","d36691a8-bad6-483d-a90d-983b13ecb8ab");
			UIModelRuntimeFactory.AddNewUIField(this,"RetCode", typeof(Int32), true,"0","System.Int32", "RetCode", true,true, false, "",false,(UIFieldType)1,"d7c6031e-d3fe-41aa-a397-5edd86c10cae","7959467b-47cc-44be-9bd6-29289f0d291d");
			UIModelRuntimeFactory.AddNewUIField(this,"RetMsg", typeof(String), true,"","System.String", "RetMsg", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","4c014add-bfe4-45d5-b3df-6ebb4928fc3e");
			UIModelRuntimeFactory.AddNewUIField(this,"Url", typeof(String), true,"","System.String", "Url", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","684283dc-f362-4d6e-9a55-f8d9c61bf743");
			UIModelRuntimeFactory.AddNewUIField(this,"StartTime", typeof(DateTime), true,"","System.DateTime", "StartTime", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","2c8e06bd-eb1c-4cbf-ad8f-7a2044c71dc8");
			UIModelRuntimeFactory.AddNewUIField(this,"EndTime", typeof(DateTime), true,"","System.DateTime", "EndTime", true,true, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","77f401ca-07f2-460b-972f-dfcb8b1323f7");
			UIModelRuntimeFactory.AddNewUIField(this,"UsedTime", typeof(Decimal), true,"0","System.Decimal", "UsedTime", true,true, false, "",false,(UIFieldType)1,"91031687-94bb-4988-a939-df7bf999ef4f","f1bdafd4-986b-4106-a6df-07b11bbecd83");


		}
		#endregion
		
		#region override method
		protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
		{
			return new AITLogRecord(builder);
		}
		#endregion

		#region new method
		public new AITLogRecord FocusedRecord
		{
			get { return (AITLogRecord)base.FocusedRecord ; }
			set { base.FocusedRecord = value ; }
		}
		public new AITLogRecord AddNewUIRecord()
		{	
			return (AITLogRecord)base.AddNewUIRecord();
		}
		public new AITLogRecord NewUIRecord()
		{	
			return (AITLogRecord)base.NewUIRecord();
		}
		#endregion 

	}

	[Serializable]
	public class AITLogRecord : UIRecord
	{
		#region Constructor
		public AITLogRecord(IUIRecordBuilder builder):base(builder)
		{
		}
		private AITLogView uiviewAITLog
		{
			get { return (AITLogView)this.ContainerView; }
		}
		protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
		{
			return new AITLogRecord(builder);
		}
		#endregion

		#region property
		
		
		public  Int64 ID
		{
			get{
				//object value = this[this.uiviewAITLog.FieldID] ;
				//return (Int64)value;
				return GetValue<Int64>(this.uiviewAITLog.FieldID);
			}
			set{
				this[this.uiviewAITLog.FieldID] = value;
			}
		}
		
		
		public  DateTime? CreatedOn
		{
			get{
				//object value = this[this.uiviewAITLog.FieldCreatedOn] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewAITLog.FieldCreatedOn);
			}
			set{
				this[this.uiviewAITLog.FieldCreatedOn] = value;
			}
		}
		
		
		public  String CreatedBy
		{
			get{
				//object value = this[this.uiviewAITLog.FieldCreatedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldCreatedBy);
			}
			set{
				this[this.uiviewAITLog.FieldCreatedBy] = value;
			}
		}
		
		
		public  DateTime? ModifiedOn
		{
			get{
				//object value = this[this.uiviewAITLog.FieldModifiedOn] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewAITLog.FieldModifiedOn);
			}
			set{
				this[this.uiviewAITLog.FieldModifiedOn] = value;
			}
		}
		
		
		public  String ModifiedBy
		{
			get{
				//object value = this[this.uiviewAITLog.FieldModifiedBy] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldModifiedBy);
			}
			set{
				this[this.uiviewAITLog.FieldModifiedBy] = value;
			}
		}
		
		
		public new Int64? SysVersion
		{
			get{
				//object value = this[this.uiviewAITLog.FieldSysVersion] ;
				//return (Int64?)value;
				return GetValue<Int64?>(this.uiviewAITLog.FieldSysVersion);
			}
			set{
				this[this.uiviewAITLog.FieldSysVersion] = value;
			}
		}
		
		
		public  String Code
		{
			get{
				//object value = this[this.uiviewAITLog.FieldCode] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldCode);
			}
			set{
				this[this.uiviewAITLog.FieldCode] = value;
			}
		}
		
		
		public new String Name
		{
			get{
				//object value = this[this.uiviewAITLog.FieldName] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldName);
			}
			set{
				this[this.uiviewAITLog.FieldName] = value;
			}
		}
		
		
		public  String InParm
		{
			get{
				//object value = this[this.uiviewAITLog.FieldInParm] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldInParm);
			}
			set{
				this[this.uiviewAITLog.FieldInParm] = value;
			}
		}
		
		
		public  String OutParm
		{
			get{
				//object value = this[this.uiviewAITLog.FieldOutParm] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldOutParm);
			}
			set{
				this[this.uiviewAITLog.FieldOutParm] = value;
			}
		}
		
		
		public  Int32? RetCode
		{
			get{
				//object value = this[this.uiviewAITLog.FieldRetCode] ;
				//return (Int32?)value;
				return GetValue<Int32?>(this.uiviewAITLog.FieldRetCode);
			}
			set{
				this[this.uiviewAITLog.FieldRetCode] = value;
			}
		}
		
		
		public  String RetMsg
		{
			get{
				//object value = this[this.uiviewAITLog.FieldRetMsg] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldRetMsg);
			}
			set{
				this[this.uiviewAITLog.FieldRetMsg] = value;
			}
		}
		
		
		public  String Url
		{
			get{
				//object value = this[this.uiviewAITLog.FieldUrl] ;
				//return (String)value;
				return GetValue<String>(this.uiviewAITLog.FieldUrl);
			}
			set{
				this[this.uiviewAITLog.FieldUrl] = value;
			}
		}
		
		
		public  DateTime? StartTime
		{
			get{
				//object value = this[this.uiviewAITLog.FieldStartTime] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewAITLog.FieldStartTime);
			}
			set{
				this[this.uiviewAITLog.FieldStartTime] = value;
			}
		}
		
		
		public  DateTime? EndTime
		{
			get{
				//object value = this[this.uiviewAITLog.FieldEndTime] ;
				//return (DateTime?)value;
				return GetValue<DateTime?>(this.uiviewAITLog.FieldEndTime);
			}
			set{
				this[this.uiviewAITLog.FieldEndTime] = value;
			}
		}
		
		
		public  Decimal? UsedTime
		{
			get{
				//object value = this[this.uiviewAITLog.FieldUsedTime] ;
				//return (Decimal?)value;
				return GetValue<Decimal?>(this.uiviewAITLog.FieldUsedTime);
			}
			set{
				this[this.uiviewAITLog.FieldUsedTime] = value;
			}
		}
		#endregion
	}
	



}